DEFINES +=GENERATEDLL
TEMPLATE = lib
CONFIG += dll

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

#CONFIG += console
#CONFIG -= app_bundle
#CONFIG -= qt
CONFIG += c++11
CONFIG += plugin

win32{
win32-msvc*:QMAKE_CXXFLAGS += /wd "4819"    #disable c4819 not unicode warning
}

#uncomment here to generate pdb when debug in release build
#QMAKE_CFLAGS_RELEASE = -O0 -MD -Zi
#QMAKE_CXXFLAGS_RELEASE = -O0 -MD -Zi
#QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO /DEBUG

#QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
#QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
##################################################

DISTFILES += CustomCnvToImgAlgorithm.json

SOURCES += \
    CustomCnvToImgAlgorithm.cpp \
    RawImageDataHelp.cpp

HEADERS += \
    CustomCnvToImgAlgorithm.h \
    RawImageDataHelp.h

FORMS += \

#octviewer path setting
OctviewerIncludePath = D:/OCTViewer/include/
OctviewerLibPath = D:/OCTViewer/lib

#HEADERS += $$OctviewerIncludePath/CNV_IMG_ALGORITHM_INTERFACE.h

INCLUDEPATH += $$OctviewerIncludePath
win32{
    LIBS += $${OctviewerLibPath}/SettingManager.lib
    LIBS += $${OctviewerLibPath}/VarSetManager.lib
    LIBS += $${OctviewerLibPath}/CudaAccLib.lib
}

#opencv setting
opencvIncludePath = D:/Opencv/opencv_330/build/include
opencvLibPath = D:/Opencv/opencv_330/build/x64/vc14/lib

INCLUDEPATH += $$opencvIncludePath
win32{
CONFIG(debug, debug|release){
    LIBS += $${opencvLibPath}/opencv_world330d.lib
}else{
    LIBS += $${opencvLibPath}/opencv_world330.lib
}
}


DEFINES += CNV2IMGALGRORITHMDLL QT_NO_DEBUG

unix{
    DEFINES += Q_OS_LINUX
    QMAKE_CFLAGS+= -fvisibility=hidden
    QMAKE_CXXFLAGS+= -fvisibility=hidden
}

